package com.cl.mybatis.learn.day10;

import org.apache.ibatis.datasource.DataSourceFactory;
import org.apache.ibatis.datasource.unpooled.UnpooledDataSource;
import org.apache.ibatis.datasource.unpooled.UnpooledDataSourceFactory;

/**
 * 自定义数据源
 *
 * @author zhoufei
 * @class: MyDataSourceFactory
 * @date 2020/10/17 16:41
 * @Verson 1.0 -2020/10/17 16:41
 * @see
 */

public class MyDataSourceFactory extends UnpooledDataSourceFactory implements DataSourceFactory {
    
    public MyDataSourceFactory() {
        System.out.println("设置数据源");
        this.dataSource = new UnpooledDataSource();
    }
}
